#-*-coding:utf-8-*-

from celery import task
from ITAdmin.settings import EMAIL_FROM
from django.core.mail import send_mail


@task
def send_email(content, send_to, send_type):
    if send_type == 1:
        send_mail(u'ITAdmin密码找回', u'点击链接重置密码：%s' % content, EMAIL_FROM, [send_to])